package com.ydl.zhwc.mvpandrxjava.sample.http;

import com.ydl.zhwc.mvpandrxjava.bean.HeWeather6;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * author : Zhangwenchao
 * e-mail : zhangwch@yidianling.com
 * time   : 2017/12/21
 */

public interface ApiService {

    String BASE_URL = "https://free-api.heweather.com/s6/weather/";

//    String URL = "http://guolin.tech/api/";

//    String KEY = "bc0418b57b2d4918819d3974ac1285d9";

    String KEY = "cc2c7cf7bf2c49239b54b8c93f96ed33";

//    String sdf = "http://guolin.tech/api/weather?cityid=CN101190401&key=bc0418b57b2d4918819d3974ac1285d9";

    @GET("now")
    Call<HeWeather6> weather(@Query("key") String key, @Query("location") String location);

    @GET("now")
    Observable<HeWeather6> rxWeather(@Query("key") String key, @Query("location") String location);


}
